package com.tarena.lbs.stock.api;

import com.tarena.lbs.pojo.stock.param.CouponStockParam;

//库存对外暴露的接口功能
public interface StockApi {

    //初始化库存
    Boolean initCouponStock(CouponStockParam param);
    //查询某个优惠券的剩余库存数量
    Integer getCouponNum(Integer couponId);

    //扣减库存
    Boolean reduceStock(Integer couponId,Integer num);
}
